package com.qidian.k12.controller;

import com.qidian.k12.pojo.Student;
import com.qidian.k12.service.StudentService;
import com.qidian.k12.util.K12Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Student)表控制层
 *
 * @author makejava
 * @since 2021-10-28 09:02:10
 */
@RestController
@RequestMapping("student")
public class StudentController {
    /**
     * 服务对象
     */
    @Resource
    private StudentService studentService;

    @GetMapping("/queryByNameAndNo")
    public K12Result queryByNameAndNo(String no,String name){
        return studentService.queryByNameAndNo(no,name);
    }
}

